Skip to content

Conversation

@alec-georgoff
Copy link
Collaborator

@alec-georgoff alec-georgoff commented Jul 10, 2025

Description:

This PR updates the bikeRentalQuery to use graphQL instead of the deprecated REST endpoint.

Note that the updates to OTP-UI found in this PR must be merged to correctly use the response that comes back from graphQL.

PR Checklist:

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?

@alec-georgoff alec-georgoff marked this pull request as draft August 7, 2025 17:44
@alec-georgoff alec-georgoff changed the base branch from dev to new-maplibre August 19, 2025 18:22
@alec-georgoff alec-georgoff changed the base branch from new-maplibre to dev August 19, 2025 18:22
@alec-georgoff alec-georgoff added the BLOCKED Blocked (waiting on another PR to be merged) label Sep 9, 2025
@alec-georgoff alec-georgoff removed the BLOCKED Blocked (waiting on another PR to be merged) label Nov 5, 2025
@alec-georgoff alec-georgoff marked this pull request as ready for review November 5, 2025 22:29
Copy link
Contributor

@daniel-heppner-ibigroup daniel-heppner-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some more types to the DefaultMap type before I approve?

const micromobility = rentalVehicles.filter(
(vehicle) =>
vehicle.vehicleType &&
vehicle.vehicleType?.formFactor !== FormFactor.CAR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will filter out any vehicles where vehicleType is undefined. Is that intentional? Do scooters/bikes never have undefined? Under what circumstance can it be undefined?

You should be able to remove the ? from the second part of the condition since the null check has already happened.

setLocation: any
setViewedStop: any
viewedRouteStops: any
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could define a bunch of these. There are some low hanging fruit like intl -> IntlShape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants